package com.licq.ldoc.domain.support;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CalendarToStringBehavior extends ToStringBehavior {

	@Override
	protected String doToString(Object obj) {
		Calendar calendar = (Calendar) obj;
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return format.format(calendar.getTime());
	}

}
